package com.bjpowernode.mvc.model.vo.bid;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;


public class BidRankVO {
    //投资排行榜
    private String phone;
    private BigDecimal bigDecimal;


    //脱敏.
    public String getPhone() {
        if (phone != null &&phone.length()==11){
            this.phone=this.phone.substring(0,3)+"*****"+phone.substring(9);
        }
        return phone;
    }

    public BidRankVO setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public BigDecimal getBigDecimal() {
        return bigDecimal;
    }

    public BidRankVO setBigDecimal(BigDecimal bigDecimal) {
        this.bigDecimal = bigDecimal;
        return this;
    }
}
